std::swap(std::map)

From Cppreference

Jump to: navigation, search
template< class Key, class T, class Compare, class Allocator >

void swap( map<Key,T,Compare,Allocator> &lhs,

           map<Key,T,Compare,Allocator> &rhs);

Swaps the contents of lhs and rhs. Calls ​lhs.swap(rhs).

Contents

Parameters

lhs, rhs - containers whose contents to swap

Return value

(none)

Complexity

See also

swap
swaps the contents
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages